﻿using SS.WPF.Framework.Display.Dialog;

namespace SS.WPF.Framework.BackgroundAction
{
    /// <summary>
    /// The class implement interface IBackgroundActionInfo 
    /// that is used to indicate for executing an action on Background thread
    /// </summary>
    public class BackgroundActionIndicator: IBackgroundActionIndicator
    {
        #region Implementations of IBackgroundActionIndicator 

        public string Title { get; set; }

        public bool IsBlockingUI { get; set; }

        public IDialogManager DialogManager { get; set; }

        #endregion

        #region Ctors

        /// <summary>
        /// Default Ctor
        /// </summary>
        public BackgroundActionIndicator()
            : this("Executing...", false)
        {          
        }

        /// <summary>
        /// Initializes a new instance of BackgroundActionIndicator
        /// </summary>
        /// <param name="title">The title of action</param>
        /// <param name="isBlockingUI">The blocking UI</param>
        public BackgroundActionIndicator(string title, bool isBlockingUI)
        {
            this.Title = title;
            this.IsBlockingUI = isBlockingUI;
        }

        #endregion
    }
}
